/****************************************************************************
** Form implementation generated from reading ui file 'Fila.ui'
**
** Created: Seg Abr 7 23:20:23 2008
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.8   edited Jan 11 14:47 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "Fila.h"

#include <qvariant.h>
#include <qlineedit.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>

#include "../Fila.ui.h"
/*
 *  Constructs a FilaWindow as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The dialog will by default be modeless, unless you set 'modal' to
 *  TRUE to construct a modal dialog.
 */
FilaWindow::FilaWindow( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "FilaWindow" );

    EditPush = new QLineEdit( this, "EditPush" );
    EditPush->setGeometry( QRect( 12, 13, 164, 22 ) );

    LabelShowFirst = new QLabel( this, "LabelShowFirst" );
    LabelShowFirst->setGeometry( QRect( 12, 44, 160, 24 ) );

    BtnClose = new QPushButton( this, "BtnClose" );
    BtnClose->setGeometry( QRect( 82, 88, 110, 24 ) );

    BtnPop = new QPushButton( this, "BtnPop" );
    BtnPop->setEnabled( FALSE );
    BtnPop->setGeometry( QRect( 181, 44, 70, 24 ) );

    BtnPush = new QPushButton( this, "BtnPush" );
    BtnPush->setEnabled( FALSE );
    BtnPush->setGeometry( QRect( 182, 12, 69, 24 ) );
    languageChange();
    resize( QSize(269, 126).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( BtnClose, SIGNAL( clicked() ), this, SLOT( close() ) );
    connect( EditPush, SIGNAL( textChanged(const QString&) ), this, SLOT( enablePush() ) );
    connect( BtnPush, SIGNAL( clicked() ), this, SLOT( push() ) );
    connect( BtnPop, SIGNAL( clicked() ), this, SLOT( pop() ) );
    init();
}

/*
 *  Destroys the object and frees any allocated resources
 */
FilaWindow::~FilaWindow()
{
    destroy();
    // no need to delete child widgets, Qt does it all for us
}

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void FilaWindow::languageChange()
{
    setCaption( tr( "Fila" ) );
    LabelShowFirst->setText( tr( "Fila Vazia!" ) );
    BtnClose->setText( tr( "Fechar" ) );
    BtnPop->setText( tr( "POP!" ) );
    BtnPush->setText( tr( "PUSH!" ) );
}

